<html>
<head>
  <meta charset="utf-8">
  <title>Blockly Plane (2)</title>
  <script type="text/javascript">
    var MSG = {
      getRows1: 'get 1st class rows',
      getRows2: 'get 2nd class rows',
      rows1: '1st class rows: %1',
      rows2: '2nd class rows: %1',
      setSeats: 'set seats',
      seats: 'Seats: %1'
    };
  </script>
  <script type="text/javascript" src="../../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../language/en/_messages.js"></script>
  <script type="text/javascript" src="../../language/common/math.js"></script>
  <script type="text/javascript" src="../../generators/javascript.js"></script>
  <script type="text/javascript" src="../../generators/javascript/math.js"></script>
  <script type="text/javascript" src="common.js"></script>
  <script type="text/javascript" src="blocks2.js"></script>
  <link href="style.css" rel="stylesheet" type="text/css">
</head>
<body onload="init()">
  <h1><a href="http://blockly.googlecode.com/">Blockly</a> &gt;
      <a href="../index.html">Apps</a> &gt; Plane (2)</h1>

  <embed src="plane.svg" height=256 width=600 type="image/svg+xml"/>
  <p>
    An airplane has two seats in the flight deck (for the pilot and co-pilot),
    and a number of rows of 1<sup>st</sup> class and 2<sup>nd</sup> class
    passenger seats.  Each 1<sup>st</sup> class row contains four seats.
    Each 2<sup>nd</sup> class row contains five seats.
  </p>
  <p>
    Build a formula (below) that calculates the total number of seats on
    the airplane as the rows are changed (above).
  </p>

  <div id="svgDiv"></div>

  <xml id="toolbox" style="display: none">
    <block type="math_number"></block>
    <block type="math_arithmetic"></block>
    <block type="math_arithmetic">
      <title name="OP">MULTIPLY</title>
    </block>
    <block type="plane_get_rows1st"></block>
    <block type="plane_get_rows2nd"></block>
  </xml>
</body>
</html>
